﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace DR5.SPExtend
{
    public static class SPWebExtension
    {
        public static void EnsureHasUniqueRoleAssignments(this SPWeb web)
        {
            if (!web.HasUniqueRoleAssignments)
            {
                web.BreakRoleInheritance(true);
            }
        }
    }
}
